import request from '@/utils/request'

// 查询所有已归还的借阅记录
export const getBackList = (page, pageSize, { bookName, username, number, begin, end }) => {
  return request.get('/borrow/page/status/0', {
    params: {
      page,
      pageSize,
      bookName,
      username,
      number,
      begin,
      end
    }
  })
}

// 根据id删除借阅记录
export const deleteById = (id) => {
  return request.delete('/borrow/' + id)
}
